<?php
class Plugin_layoutvars extends Zend_Layout_Controller_Plugin_Layout{

public function preDispatch(){
$layout = $this->getLayout();
// you can now set layout you want to use
//$layout->setLayout('layoutname');

// optionally get view:
$view = $layout->getView();
       
}

}
